$('#rsa-public-key,#original-string').on('change',function(){
	let originalStr = $('#original-string').val();
	let pubKey = $('#rsa-public-key').val();
	
	if(isNull(originalStr)||isNull(pubKey)){
		return;
	}
	
	var encrypt = new JSEncrypt();
	encrypt.setPublicKey(pubKey);
	
	let encryptStr = encrypt.encrypt(originalStr);
	
	$('#encrypt-string').text(encryptStr);
});